package pro.shushi.pamirs.demo.api.enumeration;

import pro.shushi.pamirs.meta.annotation.Dict;
import pro.shushi.pamirs.meta.common.enmu.IEnum;

@Dict(dictionary = OrderStatusEnum.DICTIONARY, displayName = "订单状态", summary = "订单状态")
public enum OrderStatusEnum implements IEnum<String> {
    un_confirm("un_confirm", "待确认"),
    unpay("unpay", "未支付"),
    payed("payed", "已支付"),
    cancel("cancel", "取消"),
    refunding("refunding", "退款中"),
    refunded("refunded", "已退款"),
    complete("complete", "完成"),
    ;

    public static final String DICTIONARY = "demo.OrderStatusEnum";

    private final String value;
    private final String displayName;

    OrderStatusEnum(String value, String displayName) {
        this.value = value;
        this.displayName = displayName;
    }

    public String getValue() {
        return value;
    }

    public String getDisplayName() {
        return displayName;
    }
}